//
//  SEGNewBusinessCircleMainViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/23.
//

#import <Foundation/Foundation.h>
#import "ReactiveObjC.h"
NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, SEGNewBusinessCircleType) {
    SEGNewBusinessCircleType_Merchants = 0,//商户
    SEGNewBusinessCircleType_Discounts = 1//优惠
};


@interface SEGNewBusinessCircleMainViewModel : NSObject
@property (nonatomic, assign) SEGNewBusinessCircleType type;

@property (nonatomic, strong) NSArray *listData;

@property (nonatomic, strong) RACCommand *listCommand;

@property (nonatomic, strong) NSString *selectedType;


@property (nonatomic, strong) NSMutableArray *nameList;
@property (nonatomic, strong) NSMutableArray *valueList;
@property (nonatomic, assign) NSUInteger selectIndex;
- (RACSignal *)getSelectedTypeArray;
- (instancetype)initWithType:(SEGNewBusinessCircleType)type;
@end

NS_ASSUME_NONNULL_END
